drivers/passthrough: Revert 23352:ea48976517af -- incorrect bugfix.
authorKeir Fraser <keir@xen.org>
Mon, 23 May 2011 17:35:04 +0000 (18:35 +0100)
committerKeir Fraser <keir@xen.org>
Mon, 23 May 2011 17:35:04 +0000 (18:35 +0100)
Signed-off-by: Keir Fraser <keir@xen.org>
xen/drivers/passthrough/pci.c

index 1cd82d632f981b0a905078088f11b24ba50669ab..e30cd950a399749febd91d56c025338859ae6aa2 100644 (file)
@@ -173,11 +173,11 @@ out:
 
 int pci_remove_device(u8 bus, u8 devfn)
 {
-    struct pci_dev *pdev, *tmp;
+    struct pci_dev *pdev;
     int ret = -ENODEV;
 
     spin_lock(&pcidevs_lock);
-    list_for_each_entry_safe ( pdev, tmp, &alldevs_list, alldevs_list )
+    list_for_each_entry ( pdev, &alldevs_list, alldevs_list )
         if ( pdev->bus == bus && pdev->devfn == devfn )
         {
             ret = iommu_remove_device(pdev);